TGML Linear Gradient

<LinearGradient> creates a linear gradient brush for the stroke or fill area of the immediate parent.

LinearGradient works in conjunction with gradient stops, which describe the location and color of transition points in gradients. For more information, see the TGML Gradient Stop: <GradientStop> section.

Attribute Type Description

Attribute

String

The brush attribute of the parent ("Fill" or "Stroke").
Inheritable: No
Animatable: No

EndPoint

Point

The ending coordinates of the linear gradient. See Remarks.
Default: "1.0 , 0.0"
Inheritable: Yes
Animatable: Yes

SpreadMethod

SpreadMethod

Specifies how the gradient should be drawn outside of the specified gradient vector or space. See Remarks.
Default: "Pad"
Inheritable: Yes
Animatable: Yes

StartPoint

StartPoint

The starting coordinates of the linear gradient. See Remarks.
Default: "0.0 , 0.0"
Inheritable: Yes
Animatable: Yes

Remarks

StartPoint and EndPoint specify the starting and ending coordinates of the linear gradient. "0.0 , 0.0" represents the upper left corner of the element and "1.0 , 1.0" represents the lower right corner.

Example:

Different SpreadMethod values: